<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<script>
	function id_check() {
		if (document.getElementById("id_name").value != "" && document
				.getElementById("id_email").value != "") {
			document.getElementById("find_id").submit();
		} else {
			window.alert("필수 정보를 입력하세요.");
		}
	}
	function pw_check() {
		if ((document.getElementById("pw_id").value != "" && document
				.getElementById("pw_birth").value != "")
				&& document.getElementById("pw_email").value != "") {
			document.getElementById("find_pw").submit();
		} else {
			window.alert("필수 정보를 입력하세요.");
		}
	}
</script>

<div id="find_IdPasswd">
	<header>
		<div id="find_title">
			<b>[아이디/비밀번호 찾기]</b>
		</div>

		<div id="find_bar"></div>
	</header>

	<section id="find_form">
		<form:form id="find_id" method="POST" action="findId">
			<fieldset>
				<legend>
					<img src="<c:url value="/resources/images/find_id.gif" />"
						width="252" height="15">
				</legend>
				<label>이름</label> <input id="id_name" type="text" size="15"
					name="name" class="name"><br> <label>이메일</label> <input
					id="id_email" type="text" size="15" name="email" class="email" /><br>
			</fieldset>
		</form:form>
		<div id="find_button">
			<input type="image"
				src="<c:url value="/resources/images/find_btn_idfind.gif" />"
				width="76" height="22" onclick="id_check()">
		</div>

		<form:form id="find_pw" method="POST" action="findPw">
			<fieldset>
				<legend>
					<img src="<c:url value="/resources/images/find_password.gif" />"
						width="350" height="15">
				</legend>
				<label>아이디</label> <input id="pw_id" type="text" size="15" name="id"
					class="id" /><br> <label>생년월일</label> <input id="pw_birth"
					type="text" size="15" name="birth" class="birth" /><br> <label>이메일</label>
				<input id="pw_email" type="text" size="15" name="email"
					class="email" /><br>
			</fieldset>
		</form:form>
		<div id="find_button">
			<input type="image"
				src="<c:url value="/resources/images/find_btn_pwfind.gif" />"
				width="83" height="22" onclick="pw_check()">
		</div>
	</section>
</div>